home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3493 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  797 b 

  1. Path: EU.net!sun4nl!xs4all!usenet
  2. From: veenb@xs4all.nl (Barend ten Veen)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Problem with TIcon and win32 with BC4.53
  5. Date: Wed, 24 Jan 1996 13:53:10 GMT
  6. Organization: XS4ALL, networking for the masses
  7. Message-ID: <4e59ql$i1e@news.xs4all.nl>
  8. References: <4e57j7$cs3@news.xs4all.nl>
  9. NNTP-Posting-Host: asd07-15.dial.xs4all.nl
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12.  
  13. Hello, I solved my problem after a last try by myself.
  14.  
  15. For those who are interessed:
  16.  
  17. here is the sollution:
  18.  
  19. HICON Hand;
  20. TIcon *AppIcon;
  21.  
  22. char Commando[]="blabla.exe";
  23.  
  24.     AppIcon=0;
  25.     Hand=0;
  26.  
  27.     // The following line check for an icon in the file
  28.  
  29.     Hand=ExtractIcon (0, (LPSTR)Commando, 0);
  30.  
  31.     if ((int)Hand != NULL && (int)Hand !=1)
  32.         AppIcon=new TIcon (Hand);
  33. . . .
  34.  
  35. Barend.
  36. veenb@xs4all.nl
  37.  
  38.  
  39.  
  40.  
  41.  
  42.